{dynamic}
	{config_load file="inserat.txt"}
	{config_load file="inserat.txt" section=inseratInfo}
{/dynamic}

<div id="contentFull">
	<!-- start contact author form -->
	<div id="colRight">
		<!-- start contact seller form -->
		<div id="contactSeller">
			<h3>{#askQues#}:</h3>
			
			{* confirmation message after a successul message sending *}
			{if $confirm or $smarty.get.stuff}
				<div id="confirmText">
				    {if !$confirm}
    				    {if $smarty.get.stuff == 'badad'}
    				        <p>{#badad#}</p>
    				        <p>{#willreact#}</p>
    				    {elseif $smarty.get.stuff == 'cheeky'}
    				        <p>{#cheeky#}</p>
    				        <p>{#willreact#}</p>
    				    {elseif $smarty.get.stuff == 'badcat'}
    				        <p>{#badcat#}</p>
    				        <p>{#willreact#}</p>
    				    {elseif $smarty.get.stuff == 'notact'}
    				        <p>{#notact#}</p>
    				        <p>{#willreact#}</p>
    				    {/if}
				    {else}
    					<p>{#congrats#}</p>
    					<p>{#congrats2#}</p>
					{/if}
				</div>
			{else}
				<form method="post" action="{$INA.this}?do=comment" onsubmit="disable('mainSubmitBut','{#pwait#}');">
					<label for="mail">{#yMail#}:</label>
					<div id="clientMail">
						<input type="text" name="mail" id="mail" maxlength="128" class="myinput borders {if $error.mail} error{/if}" value="{$smarty.post.mail}" tabindex="1" />
						{if $error.mail}
							<div class="errorMessage">{#cer1#}</div>
						{/if}
					</div>
					
					<label for="question">{#yQuestion#}:</label>
					<div id="clientQuestion">
						<textarea name="question" id="question" rows="4" cols="50" class="myinput borders {if $error.question} error{/if}" tabindex="2">{$smarty.post.question}</textarea>
						{if $error.question}
							<div class="errorMessage">{#cer2#}</div>
						{/if}
					</div>
					
					<div id="clientHuman">
						<label for="confNum">{#confirmHuman#}</label>
						<table cellspacing="0" cellpadding="3">
						<tr>
						<td>
						  <img src="{$INA.root}image/confirm.gif" alt="nospam" id="nospam" /></td>
						<td valign="middle">
						  <input type="text" maxlength="4" name="confNum" class="borders {if $error.confNum} error{/if}" id="confNum" tabindex="3" value="{$smarty.post.confNum}" />
						</td>
						</tr>
						{if $error.confNum}
							<tr><td colspan="2"><span class="errorMessage">{#cer3#}</span></td></tr>
						{/if}
						</table>
						<p>{#confHumHelp#}</p>
					</div>
					
					<div id="submitQuestion">
						<input type="submit" name="go" value="{#sendQ#}" id="mainSubmitBut" class="submitButton" tabindex="4" />
					</div>
				</form>
			{/if}
		</div>
		<!-- end contact seller form -->
		{dynamic}
		{if $smarty.session.admin}
			<div class="adminOptions">
				<h3>{#adminOpt#}</h3>
				<ul>
					{if !$data.published}
					<li><a href="{$INA.this}?do=confirm">{#confirm#}</a></li>
					{/if}
					<li><a href="{$INA.this}?do=prolong">{#prolong#}</a></li>
					<li><a href="{$INA.this}?do=edit">{#edit#}</a></li>
					<li><a href="{$INA.this}?do=delete">{#delete#}</a></li>
				</ul>
			</div>
		{elseif !$confirm and !$smarty.get.stuff}

			<!-- start help box -->
			<div class="helpBox">
				<h3>{#iHelpTit#}</h3>
				<ul>
					<!-- <li>{#iHelp1#}</li> -->
					<li>{#iHelp2#}</li>
				</ul>
			</div>
			<!-- end help box -->
		{/if}
		
		{/dynamic}
		<div id="markers" class="someCat">
		  <dl>
		      <dt>Diese Anzeige markieren</dt>
		      <dd><a href="{$INA.this}?do=mark&amp;stuff=badad">{#tbadad#}</a></dd>
		      <dd><a href="{$INA.this}?do=mark&amp;stuff=cheeky">{#tcheeky#}</a></dd>
		      <dd><a href="{$INA.this}?do=mark&amp;stuff=badcat">{#tbadcat#}</a></dd>
		      <dd><a href="{$INA.this}?do=mark&amp;stuff=notact">{#tnotact#}</a></dd>
		  </dl>  
		</div>
	</div>
	<!-- end contact author form -->


	<hr class="hidden" />


	<!-- start actual listing data -->
	<div id="colLeft">

		<h2>{if $data.ins_type == 1}{#selling#}{else}{#seeking#}{/if}: {$data.title}</h2>
        
		{if $data.folder}
		<hr class="hidden" />
		<div id="sectionDesc">
		  {$data.folder}
		</div>
		<hr class="hidden" />
		{/if}
		
		<!-- start infoboxes -->
		{* checking if the listing has already been confirmed, otherwise indicate that it was not *}
		{if !$data.published}
			<div id="infoText">
				<p>{#confp1#}</p>
				<p>{#confp2#}</p>
			</div>
		{/if}
		<!-- end infoboxes -->

		<!-- Short Description of Article -->
		<div id="shortInsDesc">
		
			{if $data.image == 't'}
				<div class="pict">
					 <img src="{$INA.root}files/inserats/{$data.intime|date_format:"%Y/%m/%d/"}{$data.id}/thumb.jpg" alt="{#thumbImage#}" id="thumb" />
				</div>
			{else}
				<div class="nopict">
					{#noPict#}
				</div>
			{/if}
			
			<ul id="sDescItems">
				<li>{#price#}: <strong>{if $data.price_type == 0}
								{$data.price} {#curr#}
						   {elseif $data.price_type == 1}
								{#bestOffer#}
						   {elseif $data.price_type == 2}
								{#contact#}
						   {elseif $data.price_type == 3}
								{#exchange#}
						   {elseif $data.price_type == 4}
								{#free#}
						   {/if}</strong>
				</li>
				<li>{#created#}: {$data.intime|date_format:"%Y.%m.%d - %H:%M"}</li>
				<!-- ><li>{#expires#}: {$data.expires|date_format:"%Y.%m.%d - %H:%M"|default:'n/a'}</li>
				<li>{#views#}: n/a</li> -->
			</ul>
		</div>
		<!-- End Short Description of Article -->
		
		<!-- Article Description -->
		<div id="fullInsDescription">
			<p>{$data.content}</p>
		</div>
		
		{if $data.image == 't'}
		<div id="insImage">
			<img src="{$INA.root}files/inserats/{$data.intime|date_format:"%Y/%m/%d/"}{$data.id}/image.jpg" alt="{$data.title}" id="fullim" />
		</div>
		{/if}
		<!-- End Article Description -->
		
		<!-- Start Markers -->
		
		<!-- End Markers -->
	</div>

</div>
<!-- end listing data -->